﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class camer : MonoBehaviour {

	public	 Button btn1;
	public   Button btn2;
	public   Button btn3;
	public   RawImage imag1;
	 
	// Use this for initialization
	void Start () {
		btn1.onClick.AddListener (delegate() {

			test.OpenCamera();

		});
		btn2.onClick.AddListener (delegate() {
			
		    test.OpenAlbum();

		});
		btn3.onClick.AddListener (delegate() {
			
			test.OpenPhoto();

		});
	
	}

	void camerbackStr(string base64)
	{
		Debug.Log ("===========================================");
//		Debug.Log (base64);
		Texture2D tex = test.Base64StringToTexture2D (base64);
		imag1.texture = tex;


	}

		

	// Update is called once per frame
	void Update () {
		
	}
}
